home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / PCI Driver Development Kit / • Tools / Utility / PCI Peek / PCIPeek 2.1 ReadMe < prev    next >
Encoding:
Text File  |  1996-08-20  |  4.1 KB  |  52 lines  |  [TEXT/ttxt]

  1. 6/20//95  PCIPeek 2.1
  2.  
  3. PCIPeek 2.1 is a PCI diagnostic utility program that is useful for peeking and poking at your PCI device in its configuration, IO, and or memory space.  The main commands are Display and Set, which are similar to DB/DW/DL/DP and SB/SW/SL from MacsBug.  The difference is you need to append the space type to the end, so for example: if you want to Display a Byte from configuration space,  you use DBC.  The second argument in these commands B, W, L, and P are for byte (8-bits), word (16-bits), longword (32-bits), and P (default page of 128, 8-bit bytes).
  4.  
  5. When the program is launched, it displays: Enter new node name =>.  The first step is to enter the PCI device's node name which can be found with Display Name Register utility, an example name may be: pci1000,3.  If there are two PCI cards with the same node name, you can distinguish a device by appending its unit-address, such as:  pci1000,3 7000.  The unit-address is found in the reg property with Display Name Register.
  6.  
  7. Note, memory and IO space must be enabled before its data can be Set or Displayed.  Check the Command register in configuration space 0x4 with the "C" command.
  8.  
  9. Command register bit 0 - I/O Access Enable. When this bit is set to one, the device responds to PCI I/O accesses.
  10. Command register bit 1 - Memory Access Enable.  When this bit is set to one, the device responds to PCI memory accesses.
  11. To access ROM base memory, the ROM base register, configuration space 0x30, must have bit 0 set to one.
  12.  
  13.  
  14. DXY <addr>         -->    Display (Read) X=B/W/L/P, Y=C/I/M/T
  15.  
  16. DBC < 8-bit hex addr> Reads 8-bits from current node's Configuration Space
  17. DWC < 8-bit hex addr> Reads 16-bits byte-reversed from current node's Configuration Space
  18. DLC < 8-bit hex addr> Reads 32-bits byte-reversed from current node's Configuration Space
  19. DPC < 8-bit hex addr  8-bit page length>  Reads page 8-bits (default 128-bytes) from current node's Configuration Space
  20. DBI <32-bit hex addr> Reads 8-bits from current node's IO Space
  21. DWI <32-bit hex addr> Reads 16-bits byte-reversed from current node's IO Space
  22. DLI <32-bit hex addr> Reads 32-bits byte-reversed from current node's IO Space
  23. DPI <32-bit hex addr 12-bit page length>  Reads page 8-bits (default 128-bytes) from current node's IO Space
  24. DBM <32-bit hex addr> Reads 8-bits from any memory location
  25. DWM <32-bit hex addr> Reads 16-bits byte-reversed from any memory location
  26. DLM <32-bit hex addr> Reads 32-bits byte-reversed from any memory location
  27. DPM <32-bit hex addr 12-bit page length>  Reads page 8-bits (default 128-bytes) from any memory location
  28.  
  29. DBT <no args> Reads 8-bits from current node with an Interrupt Acknowledge Cycle
  30. DWT <no args> Reads 16-bits byte-reversed from current node with an Interrupt Acknowledge Cycle
  31. DLT <no args>  Reads 32-bits byte-reversed from current node with an Interrupt Acknowledge Cycle
  32.  
  33. SXY <addr data>    -->    Set (Write) X=B/W/L, Y=C/I/M/S/B
  34.  
  35. SBC < 8-bit hex addr 8-bit hex data> Writes 8-bits to current node's Configuration Space
  36. SWC < 8-bit hex addr 16-bit hex data> Writes 16-bits byte-reversed to current node's Configuration Space
  37. SLC < 8-bit hex addr 32-bit hex data> Writes 32-bits byte-reversed to current node's Configuration Space
  38. SBI <32-bit hex addr 8-bit hex data> Writes 8-bits to current node's IO Space
  39. SWI <32-bit hex addr 16-bit hex data> Writes 16-bits byte-reversed to current node's IO Space
  40. SLI <32-bit hex addr 32-bit hex data> Writes 32-bits byte-reversed to current node's IO Space
  41. SBM <32-bit hex addr 8-bit hex data> Writes 8-bits to any memory location
  42. SWM <32-bit hex addr 16-bit hex data> Writes 16-bits byte-reversed to any memory location
  43. SLM <32-bit hex addr 32-bit hex data> Writes 32-bits byte-reversed to any memory location
  44. SLS <32-bit hex data 32-bit hex data> Writes 32-bits byte-reversed to PCIBus where current node lives with Special Cycle
  45. SLB <32-bit hex data 32-bit hex data> Writes 32-bits byte-reversed to all PCIBuses in the system with Special Cycle
  46.     
  47.     C <no args>    -->    Displays current node's PCI Configuration Header (first 64 bytes of Configuration Space
  48.     
  49. N <no args> --> To select new node name
  50.  
  51. ? <no args> --> Prints the command menu
  52.